package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.common.R;
import com.example.mapper.CategoryMapper;
import com.example.model.resp.ListCategoryResp;
import com.example.service.CategoryService;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public R<List<ListCategoryResp>> getCategoryList() {
        return R.success(categoryMapper.getCategoryList());
    }
}
